//
//  YBWTarget_IAP.m
//  AFNetworking
//
//  Created by ZXJ on 2018/12/18.
//

#import "YBWTarget_IAP.h"

#import "YBWIAPManager.h"

@implementation YBWTarget_IAP

- (void )YBWAction_startIAPWithParam:(NSDictionary *)param{
    
    if (param) {
        
        NSString * productID = param[@"productID"];
        NSString * orderCode = param[@"orderCode"];
        
        [[YBWIAPManager shareIAPManager] startPurchWithProductID:productID orderCode:orderCode completion:param[@"completion"]];
    }
    
}

- (void )YBWAction_startChackIAPResultsWithParam:(NSDictionary *)param{
    
    if (param) {
        
        NSString * orderCode = param[@"orderCode"];
        
        [[YBWIAPManager shareIAPManager] checkYBWServerePayResultOrderCode:orderCode completion:param[@"completion"]];
    }
    
}

- (void )YBWAction_checkIAPReceiptIsValid{
    
    [[YBWIAPManager shareIAPManager] checkIAPReceiptIsValid];
    
    
}

@end
